package com.example.booksshop.entity;

import lombok.Data;

/**
 * @author xuan 2021/9/14
 */
@Data
public class User {
    public int id;
    public String username;
    public String password;
    public String nickname;
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password, String nickname) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }
    public User(){}

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
